Skip to main content

constantNames

Type​

function

Summary​

Returns a list of all built-in constants in LiveCode.

Syntax​

the constantNames
constantNames()

Description​

Use the constantNames function to check whether a particular constant already exists in LiveCode, to avoid using a reserved word for your own constants and variables.

The constantNames function returns all the constants that are predefined in LiveCode, including synonyms.

Examples​

the constantNames
if it is among the lines of the constantNames then askForAnotherName

Value​

NameTypeDescription

return

The constantNames function returns a list of constant names, one per line.

command: constant

control structure: function

function: propertyNames, functionNames

glossary: constant, LiveCode, variable, return, reserved word

keyword: line

Compatibility and Support​

Introduced

LiveCode 2.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?